function hook_net_work1(){
    Java.perform(function(){
        Java.use("org.chromium.CronetClient").tryCreateCronetEngine.implementation = function(context1,b1,b2,b3,b4,str1,executor1,b5){
//            console.log("str1 => ",str1);
//            console.log("b1 b2 b3 b4 b5 => ",b1,b2,b3,b4,b5)
//            var result = this.tryCreateCronetEngine(context1,b1,b2,b3,b4,str1,executor1,b5);
//            console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new()));
//            return result;

       // public static String sendEncryptLog(String str, byte[] bArr, Context context, boolean z, String[] strArr, Map<String, String> map, String str2, boolean z2, boolean z3) {
        //     Java.use("com.ss.android.common.applog.AppLog").sendEncryptLog.implementation = function ( str1,  bArr, context, z1, strArr, map,  str2,  z2,  z3) {
        //        console.log("sendEncryptLog")
        //        return this.sendEncryptLog( str1,  bArr, context, z1, strArr, map,  str2,  z2,  z3)
        //    }
        //     // static String doPost(String str1, byte[] bArr, boolean z1, String str2, boolean z2, Map<String, String> map, final boolean z3, boolean z4)
        //     Java.use("com.ss.android.common.applog.AppLog").doPost.implementation = function (  str1,  bArr,  z1,  str2,  z2,  map,   z3,  z4) {
        //         console.log("doPost")
        //         return this.doPost(  str1,  bArr,  z1,  str2,  z2,  map,   z3,  z4 )
        //     }
        }

        Interceptor.attach(Module.getExportByName('libc.so', 'send'), {
            //每次read函数调用的时候会执行onEnter回调函数
            onEnter: function (args) {
              const numBytes = args[2].toInt32()
              if(numBytes>50){
                console.log('-------------send-----------------')
                console.log('------------->'+args[2])
                console.log(hexdump(args[1], {
                  offset: 0,
                  length: numBytes,
                  header: true,
                  ansi: true
                }));
                console.log(
                Thread.backtrace(this.context, Backtracer.ACCURATE)
                .map(DebugSymbol.fromAddress).join('\n') + '\n');
              }
          
            }
          })
    })
}

setImmediate(hook_net_work1())
//frida -U -f com.ss.android.ugc.aweme -l quic_hook_dy.js --no-pause


// :method: POST
// :path: /ri/report?lc_id=1588093228&platform=android&sdk_ver=v04.03.04-ml-android&sdk_ver_code=67306496&app_ver=18.9.0&aid=1128&sdkid&subaid&iid=1152763437252823&did=2304187594709085&bd_did&client_type=inhouse&region_type=ml&mode=2
// :authority: mssdk3-normal-lq.zijieapi.com
// :scheme: https
// x-ss-stub: F9EDDC208CDC21CBA48CB7CA3C119A6F
// accept-encoding: gzip
// cookie: sessionid=
// accept: */*
// user-agent: ByteDance-MSSDK
// x-tt-request-tag: t=1;n=0
// x-ss-req-ticket: 1645436936456
// x-vc-bdturing-sdk-version: 2.2.1.cn
// x-ladon: iBIvNWIoNfm158kC1NNq2b8xIXE3v0hvhOdPeI2EuMeCuzkb
// x-khronos: 1645436890
// x-argus: vk522crjlHbsiz50/wYc1+PxcNYzJTE+CGQpn6A2HtvMRfw4EjGnI2KBQTmbMW13yyd01zpXy0dFZstp+VQ5BeWAiPaQaHkpSgSyUI1fvvsvCWYyISnMrtswe3m4YIb0Mpu2sXTy7tcJC5UgN7m28PatPSqLH4fBDPfuAfE0d/bhOpYlEt9uYa2EkuSTAcO1RmFvDUEQidwV4Qw9so0Wecd/oB5MIfmgj4Z0ToAgCnhUN/AZI1tWV3wPWzM+HJCr/Ah1iDRAv+FaWY3qKf+JSlmB
// x-gorgon: 0404c04b140156b14ee2d9d040786bc5592409ef55a24fc2f2c8
// content-type: application/octet-stream
// content-length: 8242